package com.supreme.commonrocketmq;

import com.supreme.commonboot.annotation.ApplicationName;
import com.supreme.commonboot.annotation.ModuleName;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.PropertySource;

import javax.annotation.PostConstruct;

@SpringBootConfiguration
@PropertySource(value = {"classpath:rocketmq-module.properties"}, encoding = "UTF-8")
public class SupremeCommonRocketmqModule {

    @ApplicationName
    private String applicationName;

    @ModuleName
    private String moduleName;

    @PostConstruct
    private void initRocketmqModule() {
        System.out.printf("initRocketmqModule applicationName: %s moduleName: %s\n", applicationName, moduleName);
    }
}
